package com.tool;

public class ToChinese{
    public ToChinese() {}
    public String getGB2312(String s){
	    if (s != null && !"".equals(s)) {
			try {
				s = new String(s.getBytes("8859_1"), "gbk");
				return s;
			} catch (Exception ex) {
				System.out.print(ex.getMessage());
			}
		}
		return "";
    }
}
